package com.ddxcloud.movie.controller;

import com.ddxcloud.common.utils.Result;
import com.ddxcloud.movie.data.entity.User;
import com.ddxcloud.movie.service.SuihbService;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;


@RestController
@RequestMapping("/sui")
@Api("穗好办")
public class SuiController {
    @Resource
    SuihbService suihbService;

    /**
     * 解密用户信息
     * @param sign
     * @return
     */
    @Operation(summary = "解密用户信息")
    @GetMapping("/analysis")
    public Result<Map<String, Object>> analysis(@RequestParam("sign") String sign) {
        return Result.success(suihbService.analysis(sign));
    }
}
